package eu.news.kits;

import javax.servlet.http.HttpServletRequest;

import eu.news.data.hibernate.dao.HB_OperatorDAO;
import eu.news.data.pojo.Operator;

/**
 * 用户身份验证工具
 * @author WZZ
 *
 */
public class SecurityManager {
	Operator operator;
	
	public SecurityManager(HttpServletRequest request){
		HB_OperatorDAO dao=new HB_OperatorDAO();
		operator=dao.getByName("调试用户");
	}
	
	public static Operator getOperator(HttpServletRequest request){
		HB_OperatorDAO dao=new HB_OperatorDAO();
		return dao.getByName("调试用户");
	}
}
